<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>密码重置</title>
</head>
<script type="text/javascript">
function validatepwd(){
	var pwd=document.getElementById("newpwd");
	var repwd=document.getElementById("repwd");
	if(pwd!=repwd){
		alert("两次密码不一致");
	}
	return pwd==repwd;
}
</script>
<body>
<div id="box">
	<?php echo validation_errors(); ?>
	<table>
	<?php echo form_open('user/resetpwd',array('onsubmit'=>'return validatepwd()')); ?>
	<?php echo form_hidden('token',$token); ?>
		<tr>
			<td colspan="2">密码重置</td>
		</tr>
		<tr>
			<td>新密码</td>
			<td><input type="text" name="newpwd"></td>
		</tr>
		<tr>
			<td>重置密码</td>
			<td><input type="text" name="repwd"></td>
		</tr>
		<tr>
			<td colspan="2"><input type="submit" value="确定"></td>
		</tr>
		</form>
	</table>
</div>
</body>
</html>